package cn.stylefeng.guns.modular.statistic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.statistic.entity.DayIncome;
import cn.stylefeng.guns.modular.statistic.model.params.DayIncomeParam;
import cn.stylefeng.guns.modular.statistic.model.result.DayIncomeResult;
import cn.stylefeng.guns.modular.statistic.model.result.IncomeStatisticResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuqiang
 * @since 2020-02-22
 */
public interface DayIncomeService extends IService<DayIncome> {

    /**
     * 新增
     *
     * @author liuqiang
     * @Date 2020-02-22
     */
    void add(DayIncomeParam param);

    /**
     * 删除
     *
     * @author liuqiang
     * @Date 2020-02-22
     */
    void delete(DayIncomeParam param);

    /**
     * 更新
     *
     * @author liuqiang
     * @Date 2020-02-22
     */
    void update(DayIncomeParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-22
     */
    DayIncomeResult findBySpec(DayIncomeParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-22
     */
    List<DayIncomeResult> findListBySpec(DayIncomeParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-22
     */
     LayuiPageInfo findPageBySpec(DayIncomeParam param);

    List<IncomeStatisticResult> statisticDay(DayIncomeParam dayIncomeParam);

    DayIncomeResult findByDay(int day);
}
